package com.tnxst.phexamination.public_health_docking_interface;

import com.tnxst.phexamination.constant.HISConfig;
import com.tnxst.phexamination.constant.Trade;
import com.tnxst.phexamination.utils.StringUtils;
import com.tnxst.phexamination.utils.WebServiceUtils;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public class InhabitantInterface {

    /**
     * 查询居民健康档案基本信息(综合查询) 55-11
     * @param pageSize
     * @param pageIndex
     * @param personId
     */
    public static void queryInhabitantBasicInfo(String personId, Integer pageSize, Integer pageIndex, WebServiceUtils.Response<List> response){
        String trade = Trade.RESIDENTS_HEALTH_RECORDS.QUERY_RESIDENTS_INFO;
        Map<String, Object> dataMap = StringUtils.getDataMap();
        if (StringUtils.isNotNull(personId))
            dataMap.put("PERSONID",personId);
        dataMap.put("PageSize",pageSize);
        dataMap.put("PageIndex",pageIndex);
        WebServiceUtils.call(trade,dataMap,response);
    }



}
